package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @TableName ap_article_config
 */
@Data
@NoArgsConstructor
@TableName("ap_article_config")
public class ApArticleConfig implements Serializable {


    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    private Long articleId;

    private Boolean isComment;

    private Boolean isForward;

    private Boolean isDown;

    private Boolean isDelete;

    private static final long serialVersionUID = 1L;

    public ApArticleConfig(Long articleId){
        this.articleId = articleId;
        this.isComment = true;
        this.isForward = true;
        this.isDelete = false;
        this.isDown = false;
    }
}